﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers {
    import net.wooga.pets.models.*;
    import org.robotlegs.mvcs.*;

    public class TutorialStateCommand extends Command {

		[Inject]
        public var tutorialModel:TutorialModel;
		[Inject]
        public var gameStateModel:GameStateModel;

        override public function execute():void{
            if (this.gameStateModel.state == GameStateModel.STATE_GAME_TUTORIAL){
                switch (this.tutorialModel.state){
                    case TutorialModel.START:
                        this.tutorialModel.state = TutorialModel.LEVEL1_LOAD_ASSETS;
                        break;
                };
            };
        }

    }
}//package net.wooga.pets.controllers 
